<template>
  <div class="box">
    <div class="money">
      <h3>喜茶百货</h3>

      <img src="@/assets/kang/fenxiang.png" @click="showShare=true" />
      <van-cell style="width:20px;height:30px" />
      <van-share-sheet v-model="showShare" title="分享至" :options="options" @select="onSelect" />
    </div>
  </div>
</template>

<script>
import { Toast } from "vant";
export default {
  data() {
    return {
      showShare: false,
      options: [{ name: "微信", icon: "wechat" }]
    };
  },
  methods: {
    onSelect(option) {
      Toast(option.name);
      this.showShare = false;
    }
  }
};
</script>

<style scoped>
.box {
  width: 100%;
  /* height: 100%; */
}
.money {
  width: 100%;
  height: 0.5rem;
  background-color: white;
  line-height: 0.5rem;
  text-align: center;
  position: fixed;
  z-index: 99;
  top: 0rem; 
}

.money > h3 {
  float: left;
  margin-left: 1.4rem;
}
img {
  width: 0.3rem;
  height: 0.3rem;
  float: right;
  margin: 0.1rem 0.1rem 0 0;
}
/* >>>.van-cell{
        background-color: gainsboro;
    } */
    
.van-share-sheet__options {
  display: flex;
  justify-content: center;
}
</style>